
def More_letter(string):
    dict={}
    for letter in string:
      if letter not in dict:
        dict[letter]=1
      else:
       dict[letter]+=1
    max_value=0
    most_key=None
    for key,value in dict.items():
       if value>max_value:
           max_value=value
           most_key=key
    return most_key,max_value
string=input("请输入字符串：")
print(More_letter(string))